.class public final Lnet/tsapps/topdeals/b/b;
.super Landroid/app/Dialog;


# instance fields
.field private a:Lnet/tsapps/topdeals/a/d;

.field private b:Landroid/content/DialogInterface$OnClickListener;

.field private c:Landroid/widget/ListView;

.field private d:[I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 3

    const/4 v2, 0x2

    const/4 v1, 0x1

    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x3

    new-array v0, v0, [I

    aput v1, v0, v1

    aput v2, v0, v2

    iput-object v0, p0, Lnet/tsapps/topdeals/b/b;->d:[I

    invoke-virtual {p0, v1}, Lnet/tsapps/topdeals/b/b;->requestWindowFeature(I)Z

    const v0, 0x7f030005

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/b;->setContentView(I)V

    iput-object p2, p0, Lnet/tsapps/topdeals/b/b;->b:Landroid/content/DialogInterface$OnClickListener;

    const v0, 0x7f050022

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/b;->c:Landroid/widget/ListView;

    new-instance v0, Lnet/tsapps/topdeals/a/d;

    iget-object v1, p0, Lnet/tsapps/topdeals/b/b;->d:[I

    invoke-direct {v0, p1, v1}, Lnet/tsapps/topdeals/a/d;-><init>(Landroid/content/Context;[I)V

    iput-object v0, p0, Lnet/tsapps/topdeals/b/b;->a:Lnet/tsapps/topdeals/a/d;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/b;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lnet/tsapps/topdeals/b/b;->a:Lnet/tsapps/topdeals/a/d;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f050021

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    new-instance v1, Lnet/tsapps/topdeals/b/h;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/b/h;-><init>(Lnet/tsapps/topdeals/b/b;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f05001e

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    new-instance v1, Lnet/tsapps/topdeals/b/a;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/b/a;-><init>(Lnet/tsapps/topdeals/b/b;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public final a()V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/b;->b:Landroid/content/DialogInterface$OnClickListener;

    iget-object v1, p0, Lnet/tsapps/topdeals/b/b;->a:Lnet/tsapps/topdeals/a/d;

    invoke-virtual {v1}, Lnet/tsapps/topdeals/a/d;->a()I

    move-result v1

    invoke-interface {v0, p0, v1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/b;->dismiss()V

    return-void
.end method
